<template>
    <el-badge :value="readCount" :max="99" class="item">
        <el-button size="small" @click="showModel">消息</el-button>

    </el-badge>
</template>

<script>
import {mapGetters,mapMutations} from 'vuex'

export default {
    name: "e-chat-button",
    data(){
        return {
            visible:false
        }
    },
    computed:{
        ...mapGetters('chat' , {
            readCount:'readCount'
        })
    },
    methods:{
        beforeClose(){
            return true;
        },
        ...mapMutations('chat',['showModel']),
    }
}
</script>

<style scoped>

</style>
